package [path_1].[path_2].apis.[path_3];

import [path_1].[path_2].model.[path_3].dtos.[Table2]Dto;
import [path_1].[path_2].model.[path_3].pojos.[Table2];
import [path_1].[path_2].model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * [table2]管理接口
 * @author [author]
 *
 */
@Api(value = "[table2]管理", tags = "[table2]", description = "[table2]管理API")
public interface [Table2]ControllerApi {

    /**
     * 列表
     * @param dto
     * @return
     */
    @ApiOperation("查询列表")
    public ResponseResult findPage([Table2]Dto dto);

    /**
     * 新增
     * @param  [table2]
     * @return
     */
    @ApiOperation("新增")
    public ResponseResult save([Table2] [table2]);

    /**
     * 修改
     * @param  [table2]
     * @return
     */
    @ApiOperation("修改")
    public ResponseResult update([Table2] [table2]);

    /**
     * 删除
     * @param [key2]
     * @return
     */
    @ApiOperation("根据ID删除")
    public ResponseResult deleteById([keyType] [key2]);
}
